package com.diaohw.module.log.controller;

import com.diaohw.module.log.obj.query.LogQuery;
import com.diaohw.module.log.service.ExportService;
import com.diaohw.platform.framework.web.IgnoredResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Tag(name = "导出模块")
@RestController
@RequestMapping("/export")
public class ExportController {

    @Resource
    private ExportService exportService;

    @PostMapping("/excel")
    @Operation(summary = "Excel 导出")
    @IgnoredResponse
    public void excel(LogQuery query) {
        exportService.excel(query);
    }


}
